x86: fix get_cpu_info() when built with clang
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 10 Feb 2016 13:51:25 +0000 (14:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Feb 2016 13:51:25 +0000 (14:51 +0100)
commitc26b88bf644011396b4e4f6f15901a66b87d8c19
treea7bdd9f88ff4cd71c792f86346a335ac4a70b8cb
parent9fd8bbff561870ebe6258fdb0d66a0d5a28161eb
x86: fix get_cpu_info() when built with clang

Clang understands the GCCism in use here, but still complains that sp is
unintialised.  In such cases, resort to the older version of this code, which
directly reads %rsp into the temporary variable.

Note that we still keep the GCCism in the default case, as it causes GCC to
create rather better assembly.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/current.h